package com.code.platform.modules.bookauthor.mapper;

import com.code.platform.modules.bookauthor.model.BookAuthor;
import com.code.platform.modules.bookauthor.model.BookAuthorExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface BookAuthorMapper {
    int countByExample(BookAuthorExample example);

    int deleteByExample(BookAuthorExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BookAuthor record);

    int insertSelective(BookAuthor record);

    List<BookAuthor> selectByExample(BookAuthorExample example);

    BookAuthor selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BookAuthor record, @Param("example") BookAuthorExample example);

    int updateByExample(@Param("record") BookAuthor record, @Param("example") BookAuthorExample example);

    int updateByPrimaryKeySelective(BookAuthor record);

    int updateByPrimaryKey(BookAuthor record);
}